package cn.wd.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.*;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class Employee {
    /** */
    private Long id;

    private String avatar;

    /** */
    private String username;

    /** */
    private String name;

    /** */
    @JsonIgnore
    private String password;

    /** */
    private String email;

    /** */
    private Integer age;

    /** */
    private Boolean admin;

    /** */
    private Department dept;

    /** */
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @JsonFormat(pattern="yyyy-MM-dd", timezone="GMT+8")
    private Date hireDate;
}